<template>
	<view class="container o-mt-s">
		
		<view v-if="info" class="c-t7 o-plr c-bg-f c-line-14 o-ptb">
			<view class="">
				<text class="c-ws">电梯注册代码：</text>
				{{info.elevCode}}
			</view>
			<view class="">
				<text class="c-ws">电梯编号：</text>
				{{info.elevCode}}
			</view>
			<view class="">
				<text class="c-ws">制造许可证：</text>
				{{info.produceCertNo}}
			</view>
			<view class="">
				<text class="c-ws">出厂编号：</text>
				{{info.produceSerialNo}}
			</view>
			<view class="l-fjb">
				<view class="l-f1">
					品牌：{{info.elevBrandId}}
				</view>
				<view class="l-f1">
					电梯型号：{{info.elevModel}}
				</view>
			</view>
			<view class="l-fjb">
				<view class="l-f1">
					制造单位：{{info.produceUnitId}}
				</view>
				<view class="l-f1">
					制造日期：{{info.produceDate}}
				</view>
			</view>
			<view class="l-fjb">
				<view class="l-f1">
					安装单位：{{info.installUnitId}}
				</view>
				<view class="l-f1">
					安装日期：{{info.installDate}}
				</view>
			</view>
			<view class="">
				<text class="c-ws">使用单位：</text>
				{{info.useCorp.corpName}}
			</view>
			<view class="l-fjb">
				<view class="l-f1">
					负责人：{{info.useCorpUserName}}
				</view>
				<view class="l-f1">
					联系电话：{{info.useCorp.managerPhone}}
				</view>
			</view>
			<view class="">
				<text class="c-ws">维保单位：</text>
				{{info.serveCorp.corpName}}
			</view>
			<view class="l-fjb">
				<view class="l-f1">
					负责人：{{info.serverCorpUserName}}
				</view>
				<view class="l-f1">
					联系电话：{{info.serveCorp.managerPhone}}
				</view>
			</view>
		</view>
		
		<view v-if="ele" class="o-plr">
			<view class="u-b c-r-l c-bg-f o-mtb o-plr">
				<view class="l-fjb u-bb o-ptb c-line-13">
					<view class="l-f1">
						高峰等梯时间：{{ele.waitEleTime}}秒
					</view>
					<view class="l-f1">
						已安全运行{{ele.runDay}}天
					</view>
				</view>
				
				<view class="o-ptb c-line-13 u-bb">
					<view class="">日均数据</view>
					<view class="l-fjb">
						<view class="l-f1">
							运行距离：{{ele.distance}}KM
						</view>
						<view class="l-f1">
							运行次数：{{ele.runNum}}次
						</view>
					</view>
					<view class="l-fjb">
						<view class="l-f1">
							运行时间：{{ele.runTime}}小时
						</view>
						<view class="l-f1">
							开关门次数：{{ele.openDoorNum}}次
						</view>
					</view>
				</view>
				
				<view class="o-ptb c-line-13">
					<view class="l-fjb">
						<view class="l-f1">
							累计运行时长：{{ele.runTimeLong}}小时
						</view>
						<view class="l-f1">
							已安全运行：{{ele.safeDistance}}KM
						</view>
					</view>
					<view class="l-fjb">
						<view class="l-f1">
							保养状态：{{ele.maintainStatus == 1?'正常':'不正常'}}
						</view>
						<view class="l-f1">
							共维修：{{ele.repairNum}}次
						</view>
					</view>
					<view class="l-fjb o-mt">
						<view class="l-f1">
							下次保养：{{ele.nextDate}}
						</view>
						<view class="l-f1">
							下次年检：{{ele.yearCheckDate}}
						</view>
					</view>
				</view>
				
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		name:'info',
		data() {
			return{}
		},
		computed:{
			info: vm => vm.$store.getters.eleInfo.eleInfo,
			ele: vm => vm.$store.getters.eleInfo.eleStatistics
		},
	}
</script>

<style>
</style>
